package com.insist.service;

import com.insist.entity.OrderInfo;
import com.insist.framework.CmmBaseResponse;
import com.insist.model.OrderDetailInfoModel;

import java.util.List;

/**
 * Created by Administrator on 2016/7/1.
 */
public interface OrderService {
    /**购物车所有商品生成订单*/
    CmmBaseResponse createOrder(Long userId);

    /**指定购物车某商品生成订单*/
    CmmBaseResponse createOrder(Long userId,Long productId,Integer number);

    List<OrderDetailInfoModel> findAllOrderDetails(Long loginUserId);

    List<OrderDetailInfoModel> findAllOrderDetails(Long loginUserId,Long orderId);

    List<OrderInfo> findAllOrders(Long loginUserId);

    List<OrderDetailInfoModel> findActorByProductId(Long productId);

    String getMaxOrderNo();
}
